import request from '@/utils/request'

// 查询护士排班列表
export function listNursschedul(query) {
  return request({
    url: '/manage/nursschedul/list',
    method: 'get',
    params: query
  })
}

// 查询护士排班详细
export function getNursschedul(nursSchedulId) {
  return request({
    url: '/manage/nursschedul/' + nursSchedulId,
    method: 'get'
  })
}

// 新增护士排班
export function addNursschedul(data) {
  return request({
    url: '/manage/nursschedul',
    method: 'post',
    data: data
  })
}

// 修改护士排班
export function updateNursschedul(data) {
  return request({
    url: '/manage/nursschedul',
    method: 'put',
    data: data
  })
}

// 删除护士排班
export function delNursschedul(nursSchedulId) {
  return request({
    url: '/manage/nursschedul/' + nursSchedulId,
    method: 'delete'
  })
}
